package mx.netbrain.controller;

import java.util.ArrayList;
import java.util.List;

import mx.netbrain.model.Storage;

public class StorageController {

	public static List<Storage> completeStorage(String query,
			List<Storage> listStorage) {
		List<Storage> suggestions = new ArrayList<Storage>();
		for (Storage s : listStorage) {
			if (s.getName().startsWith(query))
				suggestions.add(s);
		}
		return suggestions;
	}

}
